package com.ssy.common;

/**
 * @author ssy
 * <p>
 * 业务消息
 */
public enum CodeMsg {

    SUCCESS(200, "SUCCESS"),
    Error(500, "请联系管理员!"),

    LOGIN_SUCCESS(200, "登录成功"),
    LOGIN_PASSWORD_USERNAME_ERROR(1002, "用户名或密码错误"),
    LOGIN_CODE_ERROR(1003, "验证码错误"),
    LOGIN_UPDATE_PWD_ERROR(1004, "修改失败，密码错误"),

    ADD_SUCCESS(200, "添加成功"),
    ADD_USER_NAME_ERROR(500, "用户名已存在"),
    ADD_USER_PHONE_ERROR(500, "手机号已存在"),
    ADD_ERROR(500, "添加失败"),

    AUTHORIZATION_SUCCESS(200, "授权成功"),
    AUTHORIZATION_ERROR(500, "授权失败"),

    UPDATE_SUCCESS(200, "修改成功"),
    UPDATE_ERROR(500, "修改失败"),

    DELETE_SUCCESS(200, "删除成功"),
    DELETE_ERROR(500, "删除失败"),

    OUTPATIENT_SUCCESS(200, "挂号成功"),
    OUTPATIENT_ERROR(500, "挂号失败"),

    RESET_USER_PASSWORD_SUCCESS(200, "重置密码成功"),
    RESET_USER_PASSWORD_ERROR(500, "重置密码失败"),

    BATCH_SETTING_SUCCESS(200, "设置成功"),
    BATCH_SETTING_ERROR(500, "设置失败"),

    DRANT_DRUG_SUCCESS(200, "药品出库成功"),
    DRANT_DRUG_ERROR(500, "药品出库失败"),
    PLEASE_ENTER_ERROR(500, "请输入正确的挂号单"),
    DRANT_DRUG_TWO_ERROR(500, "该患者药品已出库"),

    SUBMIT_APPLICATION_SUCCESS(200, "申请成功"),
    SUBMIT_APPLICATION_ERROR(500, "申请失败"),
    SUBMIT_APPLICATION_TWO_ERROR(500, "请选择待审核的数据"),

    TO_VOID_SUCCESS(200, "作废成功"),
    TO_VOID_ERROR(500, "请选择正确的数据"),

    PRESERVATION_SUCCESS(200, "暂存成功"),
    PRESERVATION_ERROR(500, "暂存失败"),

    EXAMINE_SUCCESS(200, "审核成功"),
    EXAMINE_ERROR(500, "审核失败"),

    PAY_SUCCESS(200, "缴费成功"),
    PAY_ERROR(500, "缴费失败"),
    PAY_REPEAT_ERROR(500, "该订单已缴费"),

    UPDATE_STATE_SUCCESS(200, "患者就诊完成"),

    CASE_ERROR(500, "病例保存失败"),

    SUBMIT_PURCHASE_SUCCESS(200, "提交入库成功"),
    SUBMIT_PURCHASE_ERROR(500, "提交入库失败"),
    SUBMIT_PURCHASE_TWO_ERROR(500, "请选择入库成功的数据"),

    SELECT_OUTPATIENT_ERROR(500, "查无此挂号单"),

    DISTRIBUTION_USER_ROLE_SUCCESS(200, "分配成功"),
    DISTRIBUTION_USER_ROLE_ERROR(500, "分配失败");

    /**
     * distribution
     * 错误码
     */
    public Integer CODE;

    /**
     * 错误消息
     */
    public String MSG;

    CodeMsg(Integer code, String msg) {
        this.CODE = code;
        this.MSG = msg;
    }


}
